package com.nineclock.system.service;

import com.nineclock.system.dto.SysAllowedJoinCompanyUserDTO;
import com.nineclock.system.dto.SysApplyJoinCompanyUserDTO;
import com.nineclock.system.dto.SysChangeMainManagerDTO;
import com.nineclock.system.dto.SysCompanyDTO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface SysCompanyService {
    SysCompanyDTO queryCompanyInfo();

    String uploadCompanyLogo(MultipartFile file) throws IOException;

    void updateCompanyInfo(SysCompanyDTO sysCompanyDTO);

    void changeSysAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    List<SysCompanyDTO> queryCompanyByName(String keyword);

    void applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);

    void allowedJoinCompany(SysAllowedJoinCompanyUserDTO sysAllowedJoinCompanyUserDTO);

    List<SysCompanyDTO> queryCompanyListByUserId(Long userId);
}
